const product = require("../controllers/product")

module.exports = (router)=>{
  router.get("/product/list",product.list)
  router.post("/product/add",product.add)
  router.get("/product/detail",product.detail)
  router.post("/product/edit",product.edit)
  router.post("/product/changeType",product.changeType)
  router.get("/product/getClass",product.getClass)
  router.post("/product/class/add",product.classAdd)
  router.post("/product/class/edit",product.classEdit)
  router.post("/product/class/del",product.classDel)
  router.get("/product/reply",product.reply)
  router.post("/product/reply/add",product.replyAdd)
  router.post("/product/reply/hf",product.replyHf)
  router.post("/product/reply/del",product.replyDel)
  router.post("/product/spec/add",product.specAdd)
  router.post("/product/spec/edit",product.specEdit)
  router.get("/product/spec/list",product.specList)
  router.post("/product/spec/del",product.specDel)
}